package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author jiyonghui
 * @className BatchSeqOperationEntity
 * @description
 * @date 2020/5/19   10:41
 */
@Getter
@Setter
@ToString
public class BatchSeqOperationEntity implements Serializable {


    private static final long serialVersionUID = 8483653920619030739L;

    private Long id;
    // 公司ID
    private String corpid;
    //父产品ID
    private Long parentId;
    //1开启批次号,2关闭批次号,3启用保质期，4关闭保质期,5启用序列号,6关闭序列号
    private Integer type;
    // 添加时间
    private Long operateTime;
    // 添加时间
    private Long addTime;
    // 更新时间
    private Long updateTime;
    // 删除标记
    private Integer del;

    public BatchSeqOperationEntity() {
        long now = DateTimeUtil.getInt();
        this.corpid = "";
        this.operateTime = now;
        this.addTime = now;
        this.updateTime = now;
        this.del = 0;
    }

}
